package WEEK_198;

import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;

import LCommon.TreeMethod;
import LCommon.TreeNode;

public class Test {

	public static void main(String[] args) {

//		System.out.println(new Solution().numWaterBottles(9, 3));

//		int n = 7;
//		int[][] edges = { { 0, 1 }, { 0, 2 }, { 1, 4 }, { 1, 5 }, { 2, 3 }, { 2, 6 } };
//		String labels = "abaedcd";
		int n = 4;
		int[][] edges = { { 0, 2 }, { 0, 3}, { 1, 2 }};
		String labels = "aeed";
		System.out.println(Arrays.toString(new Solution().countSubTrees(n, edges, labels)));

	}

}
